import { Code } from '@astrojs/starlight/components';
import { transformerMetaHighlight } from '@shikijs/transformers';

<Code
	code={`
  import 'package:bloc/bloc.dart';
  
  // Avoid depending on Flutter!
  // Prefer to keep business logic decoupled from the UI layer.
  import 'packages:flutter/material.dart';

  class CounterCubit extends Cubit<int> { 
    CounterCubit() : super(0);
  }
`}
lang="dart" title="counter_cubit.dart"
transformers={[transformerMetaHighlight()]} class='warning' meta="{5}"
/>